/*
 * 环境配置封装
 */
const env = import.meta.env.MODE || "production";

const ENVconfig: any = {
  dev: {
    baseApi: "/api",
    mockApi: "https://mock.presstime.cn/mock/62c3a6034d5d8500578602a2/p",
  },
  test: {
    baseApi: "/api",
    mockApi:
      "https://mobile-ms.uat.homecreditcfc.cn/mock/610e05e05a76d80027861a2f/api",
  },
  production: {
    baseApi: "/api",
    mockApi:
      "https://mobile-ms.uat.homecreditcfc.cn/mock/610e05e05a76d80027861a2f/api",
  },
};

const config = {
  env,
  mock: false,
  namespace: "manager",
  ...ENVconfig[env],
};

export default config;
